package com.example.bgmachine.bgmachine.commons;



import com.example.bgmachine.bgmachine.datas.CleanDataRecord;

import java.util.HashMap;

public class CleanDatabaseRecord {

    static CleanDatabaseRecord mCleanDatabaseRecord = null;

    private HashMap<String , CleanDataRecord> mCleanRunRecordMap= new  HashMap<String , CleanDataRecord>();

    public CleanDatabaseRecord() {
        //this.homeImage =this.homeUrl;
    }

    static public CleanDatabaseRecord getmUrlinfor() {
        if (mCleanDatabaseRecord == null) {
            mCleanDatabaseRecord = new CleanDatabaseRecord();
        }

        return mCleanDatabaseRecord;
    }


    public HashMap<String, CleanDataRecord> getmCleanRunRecordMap() {
        return mCleanRunRecordMap;
    }

    public void setmCleanRunRecordMap(HashMap<String, CleanDataRecord> mCleanRunRecordMap) {
        this.mCleanRunRecordMap = mCleanRunRecordMap;
    }

    public void addCleanRunRecordMap(String keysa, CleanDataRecord cleanRunRecord){
        this.mCleanRunRecordMap.put(keysa,cleanRunRecord);
    }

    public void  clearCleanRunRecordMap(){
        this.mCleanRunRecordMap.clear();
    }

    public CleanDataRecord getCleanRunRecordMapIndex( String keysa ){
        return  this.mCleanRunRecordMap.get(keysa);
    }

    public void removeCleanRunRecordMapIndex( String keysa ){
        this.mCleanRunRecordMap.remove(keysa);
    }


    @Override
    public String toString() {
        return "CleanDatabaseRecord{" +
                "mCleanRunRecordMap=" + mCleanRunRecordMap +
                '}';
    }
}
